<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>店铺设置  -  Powered by shopping</title>
<meta name="keywords" content="$!config.keywords" />
<meta name="description" content="$!config.description" />
<meta name="generator" content="shopping 2.0" />
<meta name="author" content="www.shopping.com">
<meta name="copyright" content="shopping Inc. All Rights Reserved">
<link href="$!webPath/resources/style/system/front/default/css/public.css" type="text/css" rel="stylesheet" />
<link href="$!webPath/resources/style/system/front/default/css/user.css" type="text/css" rel="stylesheet" />
<script src="$!webPath/resources/js/jquery-1.6.2.js"></script>
<script src="$!webPath/resources/js/jquery-ui-1.8.21.js"></script>
<script src="$!webPath/resources/js/jquery.poshytip.min.js"></script>
<script src="$!webPath/resources/js/jquery.shop.common.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script charset="utf-8" src="$!webPath/resources/editor/kindeditor.js"></script>
<script charset="utf-8" src="$!webPath/resources/editor/lang/zh_CN.js"></script>
<script>
var options = {
        cssPath : '$!webPath/resources/editor/plugins/code/prettify.css',
        filterMode : true,
		uploadJson:'$!webPath/upload.htm',
		width : '600px',
		height:'300px',
		resizeType : 1,
		allowImageUpload : false,
		allowFlashUpload : false,
		allowMediaUpload : false,
		allowFileManager : false,
		syncType:"form",
		afterCreate : function() {
							var self = this;
							self.sync();
						},
		afterChange : function() {
							var self = this;
							self.sync();
						},
		afterBlur : function() {
							var self = this;
							self.sync();
						},
		items:['source', '|', 'fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
			'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
			'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
			'superscript', '|', 'selectall', 'clearhtml','quickformat','|',
			'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
			'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image','flash', 'media', 'baidumap','table', 'hr', 'emoticons', 'link', 'unlink', '|', 'about']
};
jQuery(document).ready(function(){
//
jQuery("#theForm").validate({
    rules:{
	  store_ower_card:{required :true},
	  store_name:{required :true}
	 },
	messages:{
	  store_ower_card:{required:"身份证号码不能为空"},
	  store_name:{required :"店铺名称不能为空"}
	}
  });				
							
   editor = KindEditor.create('#store_info',options); 									
  jQuery("select").change(function(){
     var level=jQuery(this).attr("level");
	 var id=jQuery(this).val();
	 if(id!=""){
	  jQuery.post("$!webPath/load_area.htm",{"pid":id},function(data){
	     jQuery("#area"+level).empty();
		 jQuery("#area"+level).append("<option value=''>请选择</option>");
	     jQuery.each(data, function(index,item){
		   jQuery("#area"+level).append("<option value='"+item.id+"'>"+item.areaName+"</option>");
		 });
		 jQuery("#area"+level).show();
	  },"json");
	 }else{
	   for(var i=level;i<=3;i++){
	    jQuery("#area"+i).empty();
	    jQuery("#area"+i).hide();
	   }
	 }
  });
 jQuery("#area3").change(function(){
   var id=jQuery(this).val();
   jQuery("#area_id").val(id);
  });
});
function save_form(){
   jQuery("#theForm").submit();
}
</script>
</head>
<body>
$!httpInclude.include("/top.htm")
<div class="main"> $!httpInclude.include("/seller/nav_head.htm")
  <div class="user_center">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_table">
      <tr> $!httpInclude.include("/seller/nav.htm?op=store_set")
        <td id="centerbg" valign="top">
         <div class="buyer_position"><div class="buyer_p_box"><a href="$!webPath/seller/index.htm">卖家中心</a> > <span>店铺设置</span></div></div>
        <div class="productmain">
            <div class="ordernav">
              <ul class="orderul">
                <li class="this"><a href="$!webPath/seller/store_set.htm">店铺设置</a></li>
                <li><a href="$!webPath/seller/store_slide.htm">店铺幻灯</a></li>
                <li><a href="$!webPath/seller/store_map.htm">店铺地图</a></li>
                <li><a href="$!webPath/seller/store_approve.htm">店铺认证</a></li>
              </ul>
            </div>
            <form action="$!webPath/seller/store_set_save.htm" method="post" enctype="multipart/form-data" id="theForm">
              <div class="ordercon">
                <div class="setshop">
                  <table width="705" border="0" cellspacing="0" cellpadding="0" class="setshoptable">
                    <tr>
                      <td width="12%" align="right" valign="top">店铺标志：</td>
                      <td style="padding-left:30px;"><ul class="setlogo">
                          #set($store_logo="$!webPath/$!config.storeImage.path/$!config.storeImage.name")
                          #if($!store.store_logo)
                          #set($store_logo="$!webPath/$!store.store_logo.path/$!store.store_logo.name")
                          #end
                          <li class="shoplogo"><img src="$!store_logo" width="105" height="97" /></li>
                          <li>
                            <input name="logo" type="file" id="logo" size="30" />
                          </li>
                          <li class="setinfo">此处为您的店铺标志，将显示在店铺信息栏里<strong>，建议尺寸100*100像素</strong></li>
                        </ul></td>
                    </tr>
                    <tr>
                      <td width="98" align="right" valign="top">店铺条幅：</td>
                      <td style="padding-left:30px;"><ul class="setbanner">
                          #set($banner="$!webPath/resources/style/shop/$!{store.template}/images/banner.jpg")
                          #if($!store.store_banner)
                          #set($banner="$!webPath/$!store.store_banner.path/$!store.store_banner.name")
                          #end
                          <li class="shopbanner"><img src="$!banner" width="400" height="100" /></li>
                          <li>
                            <input name="banner" type="file" id="banner" size="30" />
                          </li>
                          <li class="setinfo">此处为您的店铺条幅，将显示在店铺导航上方的banner位置，<strong>建议尺寸宽度为1000像素</strong>， 店标与店铺条幅只有点击"提交"后才能生效</li>
                        </ul></td>
                    </tr>
                    <tr>
                      <td width="98" align="right" >店主名称：</td>
                      <td style="padding-left:30px; color:#666">$!store.store_ower</td>
                    </tr>
                    <tr>
                      <td width="98" align="right">身份证号：</td>
                      <td style="padding-left:30px; color:#666"><span class="setinput">
                        <input name="store_ower_card" type="text" id="store_ower_card" value="$!store.store_ower_card" />
                        </span></td>
                    </tr>
                    <tr>
                      <td width="98" align="right">店铺名称： </td>
                      <td style="padding-left:30px;"><span class="setinput">
                        <input name="store_name" type="text" id="store_name" value="$!store.store_name" />
                        </span><a href="$!webPath/store.htm?id=$!user.store.id" target="_blank" class="blue2 px20">我的店铺首页</a></td>
                    </tr>
                    #if($!config.second_domain_open)
                    <tr>
                      <td align="right">二级域名：</td>
                      <td style="padding-left:30px; color:#666"><span class="setinput"> #if($!{config.domain_allow_count}>0&&$!{store.domain_modify_count}>=$!{config.domain_allow_count})
                        #set($modity=0)
                        #else
                        #set($modity=1)
                        #end
                        <input name="store_second_domain" type="text" id="store_second_domain" value="$!store.store_second_domain" #if($!modity==0) readonly="readonly"#end  />
                        填写二级域名前缀即可，如shopping#if($!modity==0)<span style="color:#F00">[已经超过系统允许次数]</span>#end </span></td>
                    </tr>
                    #end
                    <tr>
                      <td align="right">店铺等级： </td>
                      <td style="padding-left:30px; color:#666"><span>$!store.grade.gradeName#if($!store.update_grade)　升级审核中... #else<a href="$!webPath/seller/store_grade.htm" target="_blank" class="blue2 px20">升级店铺</a> #end</span></td>
                    </tr>
                    <tr>
                      <td width="98" align="right">所在地区：</td>
                      <td style="padding-left:30px; color:#666">$!areaViewTools.generic_area_info("$!store.area.id") <span class="setedit">
                        <input name="input" type="button"  value="编辑" onclick="javascript:jQuery('#area1').show();" id="modify"/>
                        <select name="area1" id="area1" level="2" style="width:80px;display:none;">
                          <option value="" selected="selected">请选择地区</option>          
   				           #foreach($area in $areas)                 
                           <option value="$!area.id">$!area.areaName</option>                            
				           #end                  
                        </select>
                        <select name="area2" id="area2" style="display:none;width:80px;" level="3">
                        </select>
                        <select name="area3" id="area3" style="display:none;width:80px;" level="4">
                        </select>
                        <input name="area_id" type="hidden" id="area_id"  value="$!store.area.id"/>
                        </span>
                      </td>
                    </tr>
                    <tr>
                      <td width="98" align="right">详细地址：</td>
                      <td style="padding-left:30px;"><span class="setinput">
                        <input name="store_address" type="text" id="store_address" value="$!store.store_address" />
                        </span></td>
                    </tr>
                    <tr>
                      <td width="98" align="right">联系电话：</td>
                      <td style="padding-left:30px;"><span class="setinput">
                        <input name="store_telephone" type="text" id="store_telephone" value="$!store.store_telephone" />
                        </span></td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">联系QQ：</td>
                      <td style="padding-left:30px;"><span class="setinput">
                        <input name="store_qq" type="text" id="store_qq" value="$!store.store_qq" />
                        </span></td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">联系MSN：</td>
                      <td style="padding-left:30px;"><span class="setinput">
                        <input name="store_msn" type="text" id="store_msn" value="$!store.store_msn" />
                        </span></td>
                    </tr>
                    <tr>
                      <td align="right" valign="top">阿里旺旺：</td>
                      <td style="padding-left:30px;"><span class="setinput">
                        <input name="store_ww" type="text" id="store_ww" value="$!store.store_ww" />
                        </span></td>
                    </tr>
                    <tr>
                      <td width="98" align="right" valign="top">SEO关键字：</td>
                      <td style="padding-left:30px;"><ul class="setseo">
                          <li><span class="setinput">
                            <input name="store_seo_keywords" type="text" id="store_seo_keywords" value="$!store.store_seo_keywords" />
                            </span></li>
                          <li style="color:#666">用于店铺搜索引擎的优化，关键字之间请用英文逗号分隔</li>
                        </ul></td>
                    </tr>
                    <tr>
                      <td width="98" align="right" valign="top">SEO描述：</td>
                      <td style="padding-left:30px;"><ul class="setseo">
                          <li><span class="setinput">
                            <textarea name="store_seo_description" cols="45" rows="5" id="store_seo_description">$!store.store_seo_description</textarea>
                            </span></li>
                          <li style="color:#666">用于店铺搜索引擎的优化，关键字之间请用英文逗号分隔</li>
                        </ul></td>
                    </tr>
                    <tr>
                      <td align="right">店铺介绍：</td>
                      <td style="padding-left:30px;"><ul class="setseo">
                          <li><span class="setinput">
                            <textarea name="store_info" cols="45" rows="5" id="store_info">$!store.store_info</textarea>
                            </span></li>
                          <li style="color:#666">详细介绍店铺，为买家提供更多的了解</li>
                        </ul></td>
                    </tr>
                    <tr>
                      <td width="98" align="right">&nbsp;</td>
                      <td style="padding-left:30px;"><span class="setsub">
                        <input type="button"  value="保 存" style="cursor:pointer;" onclick="save_form();"/>
                        </span></td>
                    </tr>
                  </table>
                </div>
              </div>
            </form>
          </div></td>
      </tr>
    </table>
  </div>
  $!httpInclude.include("/footer.htm") </div>
</body>
</html>
